package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {


	/**
	 * 查询所有用户
	 *
	 * @return
	 * @throws Exception
	 */
	List<User> findAll() throws Exception;


	/**
	 * 根据条件进行用户查询
	 *
	 * @param user
	 * @return
	 * @throws Exception
	 */
	User findByCondition(User user) throws Exception;


	User findById(User user);
	/**
	 * 插入
	 *
	 * @param user
	 * @return
	 */
	int insert(User user);

	/**
	 * 更新
	 *
	 * @param user
	 * @return
	 */
	int updateById(User user);

	/**
	 * @param user
	 * @return
	 */
	int deleteById(User user);
}
